<!doctype html><html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
    </head>
    <body>
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <div class="datalist"><table id="flexigrid" style="display:none"></table></div>
        <script type="text/javascript">
            $(function() {
                $("#flexigrid").flexigrid($.extend(SG.flexOptions, {
                    url: '<?= site_url('seal/sealchat/flexigrid') ?>',
                    colModel: [
						{display: '<?= translate('SEAL_PLATFORM') ?>', name: 'platform', width: 100},
						{display: '<?= translate('SEAL_AREA') ?>', name: 'area', width: 100},
						{display: '<?= translate('SEAL_ACCOUNT') ?>', name: 'account', width: 100},

                        {display: '<?= translate('ROLE_ID') ?>', name: 'role_id', width: 100, iskey: true},
                        {display: '<?= translate('ROLE_NAME') ?>', name: 'role_name', width: 100},
                        {display: '<?= translate('SEAL_INSERTTIME') ?>', name: 'inserttime', width: 150},
                        {display: '<?= translate('ENDTIME') ?>', name: 'chat_end_time', width: 150},
                        {display: '<?= translate('SEAL_OPERATOR') ?>', name: 'operator', width: 100},
                        {display: '<?= translate('SEAL_DES') ?>', name: 'description', width: 300},                                                          
                        {display: '<?= translate('MANAGE') ?>', name: 'id', width: 135, sortable: false, process: formatOp, toggle: false}
                    ],
                    buttons: [
                        {name: 'add', displayname: "<?= translate('ADD') ?>", title: "<?= translate('ADD') ?>", bclass: 'add', onpress: multi},
                        {name: 'delete', displayname: "<?= translate('DEL') ?>", title: "<?= translate('DEL') ?>", bclass: 'delete', onpress: multi},
                        {name: 'export', displayname: "<?= translate('EXPORT') ?>", bclass: 'export', onpress: multi},
                        {separator: true}
                    ],
                    searchitems: true,
                }));
                SG.admin = $.extend(SG.admin, {
                    add_url: '<?= site_url("seal/sealchat/add") ?>',
                    del_url: '<?= site_url("seal/sealchat/del/") ?>',
                    multi_url: '<?= site_url("item/multi/") ?>'
                });

            });
//            function AreaChange(obj)
//            {
//                $("#flexigrid").flexOptions({extParam: [{name: 'area_selected', value: $(obj).val()}]});
//                $("#flexigrid").flexReload();
//            }
        </script>       
    </body>
</html>